import {
	http
} from '../httpIndex.js'


export default {
	// 创建请假
	createLeaveApply(data) {
		return http.post(
			`app/Student/createLeaveApply`, data
		)
	},
	
	// 新创建请假
	createNewLeaveApply(data) {
		return http.post(
			`app/Student/createNewLeaveApply`, data
		)
	},

	// 请假记录
	getStuLeaveApplyList(studentId) {
		return http.get(
			`app/Student/getStuLeaveApplyList/${studentId}`,
		)
	},

	// 老师获取记录
	getStuLeaveApplyByClsTeacherId(data) {
		return http.post(
			`app/StudentLeave/getStuLeaveApplyByClsTeacherId`, data
		)
	},
	// 审批请假
	updateStuLeaveApplyStatus(data) {
		return http.post(
			`app/StudentLeave/updateStuLeaveApplyStatus`, data
		)
	},

	// 学生修改密码
	resetPwd(data) {
		return http.put(
			`app/Student/resetPwd`, data
		)
	},
	
	// 撤销请假
	cancelStudentLeaveApply(data) {
		return http.post(
			`app/StudentLeave/cancelStuLeaveApply`, data
		)
	},
	
	// 学生销假申请
	studentCancelLeaveApply(data) {
		return http.post(
			`app/Student/studentCancelLeave`, data
		)
	},
	
	//获取学生班主任信息，用于时间轴展示
	studentLeaveCorrelationInfo(studentId){
		
		return http.get(`app/Student/studentLeaveCorrelationInfo/${studentId}`)
		
	},
	
	
	//获取离校凭证
	getLeavingSchoolCertificate(studentId) {
		return http.get(`app/Student/getLeavingSchoolCertificate?studentId=${studentId}`)
	}
	

}